import {
    Document,
    Menu as IconMenu,
    Location,
    Setting,
    House,
    User,
    ChatLineSquare,
    Edit,
    Lock,
    UserFilled,
    Present,
    Crop,
    FolderAdd,
    Headset
} from '@element-plus/icons-vue'
import { markRaw } from 'vue'
export const routerList: any = [
    {
        path: "/home",
        name: 'home',
        component: () => import("@/views/Home/Home.vue"),
        meta: {
            text: '首页'
        },
        role: 1,
        icon: markRaw(House)
    },

    {
        path: "/role",
        name: 'role',
        redirect: '/role/list',
        meta: {
            text: '权限管理'
        },
        role: 5,
        icon: markRaw(Lock),
        children: [
            {
                path: "/role/list",
                name: 'role-list',
                component: () => import("@/views/Role/RoleList.vue"),
                meta: {
                    text: '权限列表'
                },
                role: 5,
                icon: markRaw(Lock),
            },
            {
                path: "/role/action",
                name: 'role-action',
                component: () => import("@/views/Role/RoleAction.vue"),
                meta: {
                    text: '权限数据'
                },
                role: 5,
                icon: markRaw(Lock),
            },
        ]
    },
    {
        path: "/anno",
        name: 'anno',
        redirect: '/anno/list',
        meta: {
            text: '公告管理'
        },
        role: 1,
        icon: markRaw(ChatLineSquare),
        children: [
            {
                path: "/anno/list",
                name: 'anno-list',
                component: () => import("@/views/Anno/AnnoList.vue"),
                meta: {
                    text: '公告列表'
                },
                role: 1,
                icon: markRaw(ChatLineSquare),
            },
            {
                path: "/anno/add",
                name: 'anno-add',
                component: () => import("@/views/Anno/AnnoAdd.vue"),
                meta: {
                    text: '公告新增'
                },
                role: 2,
                icon: markRaw(ChatLineSquare),
            },
            {
                path: "/anno/detail/:aid",
                name: 'anno-detail',
                component: () => import("@/views/Anno/AnnoDetail.vue"),
                meta: {
                    text: '公告详情'
                },
                role: 1,
                icon: markRaw(ChatLineSquare),
                noShow: true,
            },
        ]
    },

    {
        path: "/user",
        name: 'user',
        redirect: '/user/list',
        meta: {
            text: '用户管理'
        },
        role: 2,
        icon: markRaw(UserFilled),
        children: [
            {
                path: "/user/list",
                name: 'user-list',
                component: () => import("@/views/User/UserList.vue"),
                meta: {
                    text: '用户列表'
                },
                role: 2,
                icon: markRaw(UserFilled),
            },
            {
                path: "/user/add",
                name: 'user-add',
                component: () => import("@/views/User/UserAdd.vue"),
                meta: {
                    text: '用户新增'
                },
                role: 2,
                icon: markRaw(UserFilled),
            },
            {
                path: "/user/data",
                name: 'user-data',
                component: () => import("@/views/User/UserData.vue"),
                meta: {
                    text: '用户分析'
                },
                role: 4,
                icon: markRaw(UserFilled),
            },
        ]
    },

    {
        path: "/edu",
        name: 'edu',
        redirect: '/edu/data',
        meta: {
            text: '教务管理'
        },
        role: 4,
        icon: markRaw(Present),
        children: [
            {
                path: "/edu/xueke",
                name: 'edu-xueke',
                component: () => import("@/views/Edu/Xueke.vue"),
                meta: {
                    text: '学科管理'
                },
                role: 4,
                icon: markRaw(Present),
            },
            {
                path: "/edu/banji",
                name: 'edu-banji',
                component: () => import("@/views/Edu/Banji.vue"),
                meta: {
                    text: '班级管理'
                },
                role: 4,
                icon: markRaw(Present),
            },
            {
                path: "/edu/data",
                name: 'edu-data',
                component: () => import("@/views/Edu/Data.vue"),
                meta: {
                    text: '教务数据'
                },
                role: 5,
                icon: markRaw(Present),
            },
        ]
    },


    {
        path: "/advise",
        name: 'advise',
        redirect: '/advise/list',
        meta: {
            text: '意见管理'
        },
        role: 1,
        icon: markRaw(Edit),
        children: [
            {
                path: "/advise/list",
                name: 'advise-list',
                component: () => import("@/views/Advise/AdviseList.vue"),
                meta: {
                    text: '意见列表'
                },
                role: 1,
                icon: markRaw(Edit),
            },
            {
                path: "/advise/add",
                name: 'advise-add',
                component: () => import("@/views/Advise/AdviseAdd.vue"),
                meta: {
                    text: '意见新增'
                },
                role: 1,
                icon: markRaw(Edit),
            },
            {
                path: "/advise/data",
                name: 'advise-data',
                component: () => import("@/views/Advise/AdviseData.vue"),
                meta: {
                    text: '意见分析'
                },
                role: 2,
                icon: markRaw(Edit),
            },
            {
                path: "/advise/detail/:aid",
                name: 'advise-detail',
                component: () => import("@/views/Advise/AdviseDetail.vue"),
                meta: {
                    text: '意见详情'
                },
                role: 1,
                icon: markRaw(Edit),
                noShow: true,
            },
            {
                path: "/advise/update/:aid",
                name: 'advise-update',
                component: () => import("@/views/Advise/AdviseUpdate.vue"),
                meta: {
                    text: '意见修改'
                },
                role: 1,
                icon: markRaw(Edit),
                noShow: true,
            },
        ]
    },

    {
        path: "/grade",
        name: 'grade',
        redirect: '/grade/list',
        meta: {
            text: '项目管理'
        },
        role: 1,
        max: 4,
        icon: markRaw(Document),
        children: [
            {
                path: "/grade/list",
                name: 'grade-list',
                component: () => import("@/views/Grade/List.vue"),
                meta: {
                    text: '项目列表'
                },
                role: 1,
                max: 4,
                icon: markRaw(Document),
            },
            {
                path: "/grade/add",
                name: 'grade-add',
                component: () => import("@/views/Grade/GradeAdd.vue"),
                meta: {
                    text: '添加项目'
                },
                role: 1,
                max: 4,
                icon: markRaw(Document),
            },
            {
                path: "/grade/my",
                name: 'grade-my',
                component: () => import("@/views/Grade/MyGrade.vue"),
                meta: {
                    text: '我的项目'
                },
                role: 1,
                max: 4,
                icon: markRaw(Document),
            },
        ]
    },


    {
        path: "/ms",
        name: 'ms',
        redirect: '/ms/list',
        meta: {
            text: '面试管理'
        },
        role: 1,
        max: 4,
        icon: markRaw(Crop),
        children: [
            {
                path: "/ms/list",
                name: 'ms-list',
                component: () => import("@/views/Ms/MsList.vue"),
                meta: {
                    text: '面试列表'
                },
                role: 1,
                max: 4,
                icon: markRaw(Crop),
            },
            {
                path: "/ms/add",
                name: 'ms-add',
                component: () => import("@/views/Ms/AddMs.vue"),
                meta: {
                    text: '添加面试记录'
                },
                role: 1,
                max: 4,
                icon: markRaw(Crop),
            },
            {
                path: "/ms/my",
                name: 'ms-my',
                component: () => import("@/views/Ms/MyMs.vue"),
                meta: {
                    text: '我的面试记录'
                },
                role: 1,
                max: 4,
                icon: markRaw(Crop),
            },
        ]
    },

    {
        path: "/offer",
        name: 'offer',
        redirect: '/offer/list',
        meta: {
            text: 'Offer管理'
        },
        role: 1,
        max: 4,
        icon: markRaw(Headset),
        children: [
            {
                path: "/offer/list",
                name: 'offer-list',
                component: () => import("@/views/Offer/OfferList.vue"),
                meta: {
                    text: 'Offer列表'
                },
                role: 1,
                max: 4,
                icon: markRaw(Headset),
            },
            {
                path: "/offer/add",
                name: 'offer-add',
                component: () => import("@/views/Offer/OfferAdd.vue"),
                meta: {
                    text: '添加Offer'
                },
                role: 1,
                max: 4,
                icon: markRaw(Headset),
                children: [
                    {
                        path: "/offer/my",
                        name: 'offer-my',
                        component: () => import("@/views/Offer/MyOffer.vue"),
                        meta: {
                            text: '我的Offer'
                        },
                        role: 1,
                        max: 4,
                        icon: markRaw(Headset),
                    },
                    {
                        path: "/offer/my",
                        name: 'offer-my',
                        component: () => import("@/views/Offer/MyOffer.vue"),
                        meta: {
                            text: '我的Offer'
                        },
                        role: 1,
                        max: 4,
                        icon: markRaw(Headset),
                    },
                    {
                        path: "/offer/my",
                        name: 'offer-my',
                        component: () => import("@/views/Offer/MyOffer.vue"),
                        meta: {
                            text: '我的Offer'
                        },
                        role: 1,
                        max: 4,
                        icon: markRaw(Headset),
                    },
                ]
            },
            {
                path: "/offer/my",
                name: 'offer-my',
                component: () => import("@/views/Offer/MyOffer.vue"),
                meta: {
                    text: '我的Offer'
                },
                role: 1,
                max: 4,
                icon: markRaw(Headset),
            },
        ]
    },
    {
        path: "/ques",
        name: 'ques',
        redirect: '/ques/list',
        meta: {
            text: '面试题管理'
        },
        role: 1,
        max: 4,
        icon: markRaw(Location),
        children: [
            {
                path: "/ques/list",
                name: 'ques-list',
                component: () => import("@/views/Timu/QuesList.vue"),
                meta: {
                    text: '题目列表'
                },
                role: 1,
                max: 4,
                icon: markRaw(Location),
            },
            {
                path: "/ques/add",
                name: 'ques-add',
                component: () => import("@/views/Timu/AddQues.vue"),
                meta: {
                    text: '添加题目'
                },
                role: 1,
                max: 4,
                icon: markRaw(Location),
            },
            {
                path: "/ques/my",
                name: 'ques-my',
                component: () => import("@/views/Timu/MyQues.vue"),
                meta: {
                    text: '我发表的题目'
                },
                role: 1,
                max: 4,
                icon: markRaw(Location),
            },
        ]
    },
    {
        path: "/oa",
        name: 'oa',
        redirect: '/oa/list',
        meta: {
            text: '考勤管理'
        },
        role: 1,
        icon: markRaw(Setting),
        children: [
            {
                path: "/oa/list",
                name: 'oa-list',
                component: () => import("@/views/Oa/Shenpi.vue"),
                meta: {
                    text: '考勤列表'
                },
                role: 4,
                icon: markRaw(Setting),
            },
            {
                path: "/oa/add",
                name: 'oa-add',
                component: () => import("@/views/Oa/AddOa.vue"),
                meta: {
                    text: '添加申请'
                },
                role: 1,
                icon: markRaw(Setting),
            },
            {
                path: "/oa/my",
                name: 'oa-my',
                component: () => import("@/views/Oa/MyOa.vue"),
                meta: {
                    text: '我的考勤'
                },
                role: 1,
                icon: markRaw(Setting),
            },
        ]
    },
    {
        path: "/mine",
        name: 'mine',
        component: () => import("@/views/Mine/Mine.vue"),
        meta: {
            text: '个人中心'
        },
        role: 1,
        icon: markRaw(User),
    },
]